-- GENERATED SPELL FOR [Vengeance Landing Deathguard] --


function spell0_23779(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23779', 5309, 1)
end

function spell1_23779(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23779', 2266, 1)
end

function Sorts_23779(pUnit, Event)
local choix_sorts_23779 = math.random(0, 1)
if choix_sorts_23779 == 0 then
pUnit:RegisterEvent('spell0_23779', 1, 1)
end
if choix_sorts_23779 == 1 then
pUnit:RegisterEvent('spell1_23779', 1, 1)
end
end

function mob23779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23779', math.random(1500, 3000), 1)
end

function mob23779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23779, 1, 'mob23779_Action')
RegisterUnitEvent(23779, 2, 'mob23779_Leave')
RegisterUnitEvent(23779, 3, 'mob23779_Kill')
RegisterUnitEvent(23779, 4, 'mob23779_Die')
